package cn.gcyl.module.biz.controller.admin.carouselimage.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 轮播图新增/修改 Request VO")
@Data
public class CarouselImageSaveReqVO {

    @Schema(description = "轮播图id", example = "10687")
    private Long id;

    @Schema(description = "轮播图名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "轮播图名称不能为空")
    private String carouselName;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "展示位置（0首页顶部 1首页中部）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "展示位置（0首页顶部 1首页中部）不能为空")
    private Integer displayLocation;

    @Schema(description = "显示状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "显示状态（0正常 1停用）不能为空")
    private Integer status;

    @Schema(description = "跳转路径")
    private String jumpPath;

    @Schema(description = "跳转对象id", example = "12545")
    private Integer jumpId;

    @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "图片地址不能为空")
    private String imagePath;

}